<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>注册码详情</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="<%=basePath%>css/style.css">
</head>
<body>
<ul id="tabsmenu" class="tabsmenu">
		<li class="active"><a>注册码详情</a>
		</li>
	</ul>
	<div id="tab1" class="">
	<table id="rounded-corner">
		<thead>
			<tr>
				<th></th>
				<th>S_ID</th>
				<th>REG_CODE</th>
				<th>CODE_FLAG</th>
				<th>REG_TIME</th>
				<th>Edit</th>
				<th>Delete</th>
			</tr>
		</thead>
		<tbody>
			<s:iterator value="codelist" var="var">
				<tr class="odd">
					<!-- <tr class="even"> -->
					<td><input type="checkbox" name="checkbox" /></td>
					<td><s:property value="#var.SId" /><br></td>
					<td><s:property value="#var.regCode" /><br></td>
					<td><s:property value="#var.codeFlag" /><br></td>
					<td><s:property value="#var.regTime" /><br></td>
					<td><a
						href="<%=basePath%>editCode?id=<s:property value="#var.SId" />">
							<img src="images/edit.png" alt="" title="" border="0" /> </a></td>
					<td><a
						href="<%=basePath%>deleteCode?id=<s:property value="#var.SId" />">
							<img src="images/trash.gif" alt="" title="" border="0" /> </a></td>
				</tr>
			</s:iterator>
		</tbody>
			</table>
			<jsp:include page="./../common/pager.jsp">
				<jsp:param
					value='<%=request.getAttribute("javax.servlet.forward.request_uri") %>'
					name="url" />
				<jsp:param value="${pager.totalRecords }" name="items" />
				<jsp:param value="${pager.size }" name="size" />
			</jsp:include>
	</div>
</body>
</html>
